<?php

namespace App\Models\Project;

use Illuminate\Database\Eloquent\SoftDeletes;

class PaymentTerm extends Base
{
    use SoftDeletes;

    protected $table = 'pm_payment_terms';

    protected $fillable = [
        'name',
        'condition',
        'days',
    ];

    const CONDITION_BEFORE = 'before';
    const CONDITION_EQUAL = 'equal';
    const CONDITION_AFTER = 'after';
    const CONDITION_MAP = [
        self::CONDITION_BEFORE => '之前',
        self::CONDITION_EQUAL => '之时',
        self::CONDITION_AFTER => '之后',
    ];
}
